import type { NextPageWithLayout } from "./_app";
import PullPage from "../components/webrtc-pull";
import Layout from "../components/layout";
import { useRouter } from "next/router";

const Pull: NextPageWithLayout = () => {
  const router = useRouter();
  const { roomId='' }= router.query;
  return (
    <PullPage roomId={ roomId as string} />
  );
};

export default Pull;

Pull.getLayout = function getLayout(page: React.ReactElement) {
  return <Layout>{page}</Layout>;
};
